<template>
	<view :style="{paddingTop:top+'px'}">
		<scroll-view class="" :style="{height: height+'px'}" scroll-y enable-back-to-top enable-flex="true"
			@scrolltoupper="handleUpper" style="background-color: #fafafa;" @scrolltolower="handleLower">
			<view class="list">
				<view class="item" v-for="(item,index) in 10" :key="index">
					<image src="/static/new/find/pic.png" class="pic" mode=""></image>
					<view class="info">
						<text class="name">法式拼接</text>
						<view class="b">
							<image src="/static/lglogo.png" class="tx" mode=""></image>
							<text class="nickname">时光匆匆</text>
							<image src="/static/new/find/yj.png" class="yj" mode=""></image>
							<text class="num">321</text>
						</view>
					</view>
				</view>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		name: "shopping",

		data() {
			return {

			};
		},
		props: {
			top: {
				type: Number,
				default: 0
			},
			height: {
				type: Number,
				default: 0
			},
			width: {
				type: Number,
				default: 0
			},
		},
		methods:{
			handleUpper(){},
			handleLower(){}
		}
	}
</script>

<style>
	.list {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		padding: 0 32rpx;
	}

	.item {
		margin-bottom: 23rpx;
	}

	.pic {
		width: 332rpx;
		height: 446rpx;
		background: #16D0FF;
		border-radius: 20rpx 20rpx 0rpx 0rpx;
	}

	.info {
		height: 136rpx;
		width: 332rpx;
		background: #FFFFFF;
		border-radius: 0 0 20rpx 20rpx;
		justify-content: space-between;
		padding: 20rpx 23rpx;
	}

	.name {
		font-family: PingFang-SC, PingFang-SC;
		font-weight: 500;
		font-size: 24rpx;
		color: #333333;
	}

	.tx {
		width: 46rpx;
		height: 46rpx;
		background: #16D0FF;
		border: 2rpx solid #F2F2F4;
		border-radius: 50%;
	}

	.b {
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.nickname {
		font-family: PingFang-SC, PingFang-SC;
		font-weight: 500;
		font-size: 22rpx;
		color: #9A9A9A;
		margin-left: 10rpx;
		flex: 1;
	}

	.yj {
		width: 25rpx;
		height: 20rpx;
		margin-right: 10rpx;
	}

	.num {
		font-family: PingFang-SC, PingFang-SC;
		font-weight: 500;
		font-size: 24rpx;
		color: #9A9A9A;
	}
</style>